package com.example.demo1;

public class DemoTest {

    public static void main(String[] args) {

        Subject subject = new ConcreteSubject();

        Observer observer = new ConcreteObserver();

        subject.attach(observer);

        subject.notifyAllObserver();

    }
}
